package edu.br.activitys;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.gym4all.R;

public class MuscleTypePage extends Activity {

	@Override
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		this.setContentView(R.layout.muscle_type_page);
		Button shoulderButton = (Button) this.findViewById(R.id.shoulderButton);
		shoulderButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						ShoulderExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
		Button chestButton = (Button) this.findViewById(R.id.chestButton);
		chestButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						ChestExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
		Button backButton = (Button) this.findViewById(R.id.backButton);
		backButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						BackExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
		Button absButton = (Button) this.findViewById(R.id.absButton);
		absButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						AbsExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
		Button legButton = (Button) this.findViewById(R.id.legButton);
		legButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						LegExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
		Button tricepsButton = (Button) this.findViewById(R.id.tricepsButton);
		tricepsButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						TricepsExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
		Button bicepsButton = (Button) this.findViewById(R.id.bicepsButton);
		bicepsButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MuscleTypePage.this,
						BicepsExercisesPage.class);
				MuscleTypePage.this.startActivity(intent);
				MuscleTypePage.this.finish();
			}
		});
	}
}